import request from '@/utils/request'

// 获取供应商分页列表
export function getPageSupplier(query) {
  return request({
    url: '/supplier/getPageSupplier',
    method: 'POST',
    params: query
  })
}

// 获取供应商列表
export function getSupplier(query) {
  return request({
    url: '/supplier/getSupplier',
    method: 'POST',
    params: query
  })
}

// 保存供应商
export function saveSupplier(data) {
  return request({
    url: '/supplier/saveSupplier',
    method: 'post',
    data
  })
}

// 修改供应商
export function updateSupplier(data) {
  return request({
    url: '/supplier/updateSupplier',
    method: 'post',
    data
  })
}
